package ModelLayer;

/**
 * Contains the information to create an item.
 * 
 * @author (gruppe 3)
 */
public class Item
{      
    private String itemCode, name, type;
    private double price, discount;
    
    /**
     * constructor
     */
    public Item(String itemCode, String name, String type, double price, double discount)
    {           
         this.itemCode = itemCode;
         this.name = name;
         this.type = type;
         this.price = price;
         this.discount = discount;
    }
    
    // set / get methods
    public void setItemCode(String itemCode)
    {
        this.itemCode = itemCode;
    }
    
    public String getItemCode()
    {
        return itemCode;
    }
    
    public void setName(String name)
    {
        this.name = name;
    }
    
    public String getName()
    {
        return name;
    }

    public void setType(String type)
    {
        this.type = type;
    }
    
    public String getType()
    {
        return type;
    }
    
    public void setPrice(double price)
    {
        this.price = price;
    }
    
    public double getPrice()
    {
        return price;
    }
    
    public void setDiscount(double discount)
    {
        this.discount = discount;
    }
    
    public double getDiscount()
    {
        return discount;
    }
        
}
